import request from "@/api/utils/request.js";

const BASE_URL_PREFIX = "/search";

export default {
  suggest: (data) => {
    return request({
      url: `${BASE_URL_PREFIX}/suggest`,
      method: 'POST',
      data: data
    })
  },
  updateLog: (id, keyword) => {
    return request({
      url: `${BASE_URL_PREFIX}/updateLog/${id}/${keyword}`,
      method: 'PUT'
    })
  }
}